home *** CD-ROM | disk | FTP | other *** search
/ User's Choice Windows CD / User's Choice Windows CD (CMS Software)(1993).iso / utility2 / wclib.zip / WCLIBC.ZIP / MAKELIB.MSC next >
Text File  |  1993-04-27  |  2KB  |  73 lines

  1. #==========================================================
  2. # Makefile for Win DLLs under Microsoft C 6.0
  3. # Copyright (c) 1993 Douglas Boling
  4. #==========================================================
  5. #----------------------------------------------------------
  6. # Target filename
  7. #----------------------------------------------------------
  8. NAME = wclib
  9.  
  10. #----------------------------------------------------------
  11. # Define DEBUG = 1 to add debug info to EXE
  12. #----------------------------------------------------------
  13. DEBUG = 0
  14.  
  15. #----------------------------------------------------------
  16. # C compiler switches
  17. #
  18. # -c    Compile, no link
  19. # -ASw     Small model, SS != DS
  20. # -Gsw     No Stack check, Compile for Windows
  21. # -Ow   Optimize. Assume no aliases
  22. # -W3   Print warnings to level 3
  23. # -Zp   Pack Structures or...
  24. # -Zpi  If Debug info needed
  25. # -Od   Disable Optimization
  26. #----------------------------------------------------------
  27. !if $(DEBUG)
  28. CSWITCH = -c -ASw -Gsw -Ow -W3 -Zpi -Od
  29. !else
  30. CSWITCH = -c -ASw -Gsw -Ow -W3 -Zp
  31. !endif
  32.  
  33. #----------------------------------------------------------
  34. # Link Switches
  35. #
  36. # /Align:16  Align segments on 16 byte boundries 
  37. # /CO        If debug info needed
  38. #----------------------------------------------------------
  39. !if $(DEBUG)
  40. LSWITCH = /CO /align:16
  41. !else
  42. LSWITCH = /align:16
  43. !endif
  44.  
  45. #----------------------------------------------------------
  46. # Lib files
  47. #
  48. # /nod     No defaults
  49. # sdllcew  Small model lib for Windows DLLs
  50. # libw     Windows API lib
  51. # commdlg  Windows Common Dialog Box lib
  52. # shell    Windows Shell API 
  53. # mmsystem Windows multimedia lib
  54. #----------------------------------------------------------
  55. LIBS = /nod sdllcew libw commdlg mmsystem shell
  56.  
  57. #----------------------------------------------------------
  58. # Make DLL
  59. #----------------------------------------------------------
  60. $(NAME).wcl : $(NAME).obj $(NAME).def $(NAME).res
  61.     link $(LSWITCH) $(NAME) libentry, $(NAME).dll, NUL, $(LIBS), $(NAME)
  62.     rc $(NAME).res $(NAME).dll
  63.     copy $(NAME).dll $(NAME).wcl
  64.  
  65. $(NAME).obj : $(NAME).c $(NAME).h
  66.     cl $(CSWITCH) $(NAME).c
  67.  
  68. $(NAME).res : $(NAME).rc $(NAME).h $(NAME).ico
  69.     rc -r $(NAME).rc
  70.  
  71.  
  72.  
  73.